package com.zhou.api.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

/**
 * @Description : 考勤记录
 * @Author : zyy
 * @Date: 2024/9/11  16:51
 */
@Data
public class CheckOnWork {
    @TableId(type = IdType.ASSIGN_UUID)
    @Schema(description = "考勤记录id")
    private String id;

    @TableField("user_info_id")
    @Schema(description = "用户id")
    private String userInfoId;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @Schema(description = "上班时间")
    private Date createTime;

    @TableField("update_time")
    @Schema(description = "下班时间")
    private Date updateTime;

    @TableField("del_flag")
    @Schema(description = "是否删除 0否 1是")
    private Integer delFlag;

    @TableField("status")
    @Schema(description = "状态 0正常 1迟到 2早退")
    private Integer status;

    @TableField("reviewer")
    @Schema(description = "审核人")
    private String reviewer;

    @TableField("reviewer_time")
    @Schema(description = "审核时间")
    private Date reviewerTime;

    @TableField("remark")
    @Schema(description = "备注")
    private String remark;

    @TableField("reviewer_status")
    @Schema(description = "审核状态 0未审核 1通过 2未通过")
    private Integer reviewerStatus;

    @TableField("ask_leave_status")
    @Schema(description = "0无请假 1调休 2年假 3事假 4病假")
    private Integer askLeaveStatus;

    @TableField("ask_leave_time")
    @Schema(description = "请假时间")
    private String askLeaveTime;

    @TableField("img_url")
    @Schema(description = "病例图片")
    private String imgUrl;
}
